<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <div id="community">
        <div id="forum-header">
            <?php echo $community_header; ?>
        </div>
        <div>
            <?php if ($success) { ?>
            <div class="success"><?php echo $success; ?></div>
            <?php } ?>
            <div id="community-tabs" class="htabs"><a href="#tab-name-list"><?php echo $tab_name_list; ?></a><a href="#tab-rule"><?php echo $tab_rule_faq; ?></a><a href="#tab-how"><?php echo $tab_how; ?></a><!--<a href="#tab-image"><?php //echo $tab_image; ?></a>--></div>
            <div id="tab-name-list" class="tab-content">
                <div style="margin-left:470px;">
                    <span style="float:left;margin-right:30px;"><fb:like ref="micbus.com" href="<?php echo $snslink; ?>" send="true" layout="button_count" width="450" show_faces="false" font="lucida grande"></fb:like></span>
                    <span style="float:left;"><a href="https://twitter.com/share" class="twitter-share-button"
                             data-url="<?php echo $snslink; ?>"
                             data-via="MicbusFan"
                             data-text="<?php echo $your_day_social_title; ?>"
                             data-count="horizontal">Tweet</a></span>
                    <span style="float:left;"><g:plusone size="medium" href="<?php echo $snslink; ?>"></g:plusone></span>
                </div>
                <div id="name-list-top">
                    <table>
                        <thead>
                        <tr>
                            <td><?php echo $text_date; ?></td>
                            <td><?php echo $text_name; ?></td>
                            <td><?php echo $text_ready; ?></td>
                            <td><?php echo $text_count_down; ?></td>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if($upcoming_names){ ?>
                        <?php $row_num=1; ?>
                        <?php foreach($upcoming_names as $upcoming_name){ ?>
                        <tr>
                            <td><?php echo $upcoming_name['upcoming_date']; ?></td>
                            <td class="upcoming-names"><?php echo $upcoming_name['name']; ?></td>
                            <td>
                                <?php if($upcoming_name['started']=='going'){ ?>
                                <a href="<?php echo $upcoming_name['link']; ?>"><?php echo $text_claim_freebie; ?></a>
                                <?php }elseif($upcoming_name['started']=='not_started'){ ?>
                                <?php echo $text_not_started; ?>
                                <?php }else{ ?>
                                <a href="<?php echo $upcoming_name['link']; ?>"><?php echo $text_poll_on; ?></a>
                                <?php } ?>
                            </td>
                            <td class="count-down">
                                <div id="count_down<?php echo $row_num; ?>"></div>
                            </td>
                        </tr>
                        <?php $row_num++; ?>
                        <?php } ?>
                        <?php }else{ ?>
                        <tr>
                            <td colspan="3"><?php echo $text_no_name_today; ?></td>
                        </tr>
                        <?php } ?>
                        </tbody>
                    </table>
                    <div class="help"><?php echo $text_name_tip; ?></div>
                </div>
                <div id="name-list-bottom">
                    <div id="vote-name">
                        <span style="font-size:14px;font-weight:bold;display:block;margin:0 0 10px 100px;"><?php echo $entry_nominate_your_name; ?></span>
                        <form id="form" action="" method="post">
                            <?php if ($error_nominate) { ?>
                            <span class="inline_error"><?php echo $error_nominate; ?></span> <br />
                            <?php } ?>
                            <span class="input-entry"><?php echo $entry_name; ?></span><input type="text" name="name" value="<?php echo $name; ?>" size="40" />
                            <?php if ($error_name) { ?>
                            <br />
                            <span class="inline_error"><?php echo $error_name; ?></span>
                            <?php } ?>
                            <br /><br />
                            <span class="input-entry"><?php echo $entry_email; ?></span><input type="text" name="email" value="<?php echo $email; ?>" size="40" />
                            <?php if ($error_email) { ?>
                            <br />
                            <span class="inline_error"><?php echo $error_email; ?></span>
                            <?php } ?>
                            <span style="display:block;;margin:10px 0; width:350px;" class="help"><?php echo $text_nominate_your_name_tip; ?></span>
                            <input style="vertical-align:middle;" type="checkbox" name="newsletter" value="1" checked="checked" />&nbsp;&nbsp;<span style="vertical-align:middle;"><?php echo $entry_newsletter; ?></span><br /><br />
                            <img style="vertical-align:middle; margin-left:55px;" src="index.php?route=community/yourday/captcha" alt="" />&nbsp;&nbsp;<input style="vertical-align:middle; width=70px; height:20px;" type="text" name="captcha" value="<?php echo $captcha; ?>" size="10" />
                            <?php if ($error_captcha) { ?>
                            <br />
                            <span class="inline_error" style="margin-left:55px;"><?php echo $error_captcha; ?></span>
                            <?php } ?>
                            <br />
                            <a onclick="$('#form').submit();" class="button vote-button"><?php echo $button_vote; ?></a><br />
                        </form>
                    </div>
                </div>
            </div>
            <div id="tab-rule" class="tab-content">
                <div>
                   <span style="font-weight:bold;font-size:16px;">Rules</span><br /><br />
                    <span style="font-weight:bold;font-size:13px;">1.&nbsp;Never try claiming the freebie unless your first name is displayed in the Upcoming Name List.</span><br />
                    We will check participants' first names one by one. If we find you are not being honest, sorry but <span style="text-decoration:underline;">you will get banned and blacklisted forever and you will never be able to participant in any other future contests or promotions hosted by us</span>. Never doubt the truth that you will get banned forever, 'cause we use all kind of internet technologies to track down dishonest cheaters and we manually check every order to be sent to It's Your Day winners.<br /><br />
                    <span style="font-weight:bold;font-size:13px;">2.&nbsp;Never register multiple accounts and try to claim multiple freebies, even if your first name make your eligible for the It's Your Day contest. </span><br />
                    Like what we have said above, we know whether you use multiple accounts to get more than one freebie, thanks to modern internet technologies. The dishonest behaviour will only <span style="text-decoration:underline;">get you banned and you will get nothing but disappointment</span>.<br /><br />
                </div>
                <div style="margin-top:10px;">
                    <span style="font-weight:bold;font-size:16px;">FAQ</span><br /><br />
                    <span style="font-weight:bold;font-size:13px;">1.&nbsp;Does it cost anything to participate?</span><br />
                    No! As long as you have a name and your first name is displayed in the Upcoming Names List, you can enter this contest. If you win, it costs you nothing to get the freebie!<br /><br />
                    <span style="font-weight:bold;font-size:13px;">2.&nbsp;Who can participate?</span><br />
                    Just about anybody! If your child wants to participate but he/she is too young to type or surf the net, you can do it for him/her. <br /><br />
                    <span style="font-weight:bold;font-size:13px;">3.&nbsp;Will I get spammed or will my personal info gets sold if I register on your site?</span><br />
                    Perhaps you should ask your friends who have gotten their free samples ordered from us :) We never spam customers or sell their personal information. Bad behaviour only drives people off our site.<br /><br />
                    <span style="font-weight:bold;font-size:13px;">4.&nbsp;How you guys choose the names for It's Your Day?</span><br />
                    The more people nominate a name, the more it is likely to get chosen.<br /><br />
                    <span style="font-weight:bold;font-size:13px;">5.&nbsp;How do I tell you my first name and my shipping address when I participate?</span><br />
                    Well, you just need to fill in your real name and shipping address when you register an account. If you win, we will ship the freebie to the name and address you filled in.<br /><br />
                    <span style="font-weight:bold;font-size:13px;">6.&nbsp;How do I know whether I win?</span><br />
                    You will get emails from us whether you win or lose the contest. You can also check the topic for a specific name, where participants "try claiming their freebies" and the contest result is shown.<br /><br />
                    <span style="font-weight:bold;font-size:13px;">7.&nbsp;Is the poll a must, which lets the community vote on which five participants win?</span><br />
                    No. The poll is launched only when more than five participants trying to claim the freebie. If there are not more than five(<=5), all participants win and get their freebies.<br /><br />
                </div>
            </div>
            <div id="tab-how" class="tab-content">
                <span style="font-weight:bold;font-size:16px;">5 Steps to claim your freebie</span><br/><br />
                <span style="font-weight:bold;font-size:14px;">&raquo;&raquo;&nbsp;Step 1:</span><br />
                Register an account on our site and fill in your real full name and shipping address.<br /><br />
                <span style="font-weight:bold;font-size:14px;">&raquo;&raquo;&nbsp;Step 2:</span><br />
                Wait until your <span style="font-weight:bold;text-decoration:underline;">first</span> name shows up in the Upcoming Names List and click the "Claim Freebies" link.<br /><br />
                <img style="border:3px solid #666699;" src="catalog/view/theme/default/image/your_day/your_day_tutorial01.png" /><br /><br />
                <span style="font-weight:bold;font-size:14px;">&raquo;&raquo;&nbsp;Step 3:</span><br />
                The link points to a topic for the name of a certain day. Post a reply and say something sweet to people.<br /><br />
                <img style="border:3px solid #666699;" src="catalog/view/theme/default/image/your_day/your_day_tutorial02.png" /><br /><br />
                <span style="font-weight:bold;font-size:14px;">&raquo;&raquo;&nbsp;Step 4:</span><br />
                Click the "Try Claiming The Freebie" button and that means you have entered the It's Your Day contest :) <br /><br />
                <img style="border:3px solid #666699;" src="catalog/view/theme/default/image/your_day/your_day_tutorial03.png" /><br /><br />
                <span style="font-weight:bold;font-size:14px;">&raquo;&raquo;&nbsp;Step 5:</span><br />
                <span style="font-weight:bold;text-decoration:underline;">Step 5 is optional!</span> A poll will be launched to decide who gets a freebie, only when more than 5 participants were trying to claim it.<br /><br />
                <img style="border:3px solid #666699;" src="catalog/view/theme/default/image/your_day/your_day_tutorial04.png" /><br /><br />
                <img style="border:3px solid #666699;" src="catalog/view/theme/default/image/your_day/your_day_tutorial05.png" />
            </div>
            <!--<div id="tab-image" class="tab-content">test3</div>-->
        </div>
        <div>
            <span style="font-weight:bold;font-size:14px;">Note: Although we check the facebook comments on this page frequently, we cannot guaranteed to answer every question posted here.If you have any questions, we recommend clicking <a href="<?php echo $contact_link; ?>">here</a> to contact us.</span><br /><br />
            <fb:comments href="http://www.micbus.com/index.php?route=community/yourday" num_posts="1" width="980"></fb:comments>
        </div>
    </div>
<?php  echo $footer; ?>
<script  data-cfasync="true" type="text/javascript"><!--
$('#community-tabs a').tabs();
//--></script>
<script data-cfasync="true" type="text/javascript" src="catalog/view/javascript/jquery/jquery.countdown.js"></script>
<script data-cfasync="true" type="text/javascript"><!--
<?php $row_num=1; ?>
<?php foreach($upcoming_names as $upcoming_name){ ?>
$(document).ready(function() {
    $('#count_down<?php echo $row_num; ?>').countdown({
        digitWidth: 11,
        digitHeight: 16,
        format: 'dd<?php echo $text_days; ?>hh<?php echo $text_hours; ?>mm<?php echo $text_mins; ?>ss<?php echo $text_secs; ?>',
        startTime: '<?php echo $upcoming_name['days']; ?><?php echo $text_days; ?><?php echo $upcoming_name['hours']; ?><?php echo $text_hours; ?><?php echo $upcoming_name['mins']; ?><?php echo $text_mins; ?><?php echo $upcoming_name['secs']; ?><?php echo $text_secs; ?>'
    });
});
<?php $row_num++; ?>
<?php } ?>
--></script>
<script  data-cfasync="true" type="text/javascript"><!--
$('#community input[name=\'header-keyword\']').keydown(function(e) {
    if (e.keyCode == 13) {
        $('#header-search-button').trigger('click');
    }
});

$('#header-search-button').bind('click', function() {
    url = 'index.php?route=community/search';

    var keyword = $('#forum-header-bar-search input[name=\'header-keyword\']').attr('value');

    url += '&kw=' + encodeURIComponent(keyword) + '&sw=psm&sb=lpt&or=desc&lr=all';

    location = url;
});
//--></script>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
<div id="fb-root" style="display:inline;"></div>
<script data-cfasync="true" >(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement(s); js.id = id;
    js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=178458855569974";
    fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script  data-cfasync="true" type="text/javascript" src="catalog/view/javascript/forum_fn.js"></script>
